<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ControleurStream
 *
 * @author Rymdia
 */
class ControleurStream {
    //put your code here
    public function afficherStreamEdei()
    {
        
        VariableGlobales::$leStreameur = gestionBD::getMembreByLogin("Edeissa");
        include(Chemins::VUES. "v_streamEde.php");
    }
    public function afficherStreamBee()
    {
        VariableGlobales::$leStreameur = gestionBD::getLesMembresByLogin("Beehaku");
        include(Chemins::VUES. "v_streamBee.php");
    }
    public function afficherStreamHao()
    {
        VariableGlobales::$leStreameur = gestionBD::getLesMembresByLogin("Haoro");
        include(Chemins::VUES."v_streamHao.php");
    }
    
    public function afficherStreamByLogin()
    {
        switch($_REQUEST['login'])
        {
            case "Edeissa":
                include(Chemins::VUES. "v_streamEde.php");
                break;
            case "Beehaku":
                include(Chemins::VUES. "v_streamBee.php");
                break;
            case "Haoro":
                include(Chemins::VUES. "v_streamHao.php");
                break;
            default:
                break;
        }
        
    }
    
}
